export class Websocket {
    public connection = null
    // public getConnection = () => {
    //   return new Promise((resolve, reject) => {
    //     try {
    //       this.connection = new HubConnectionBuilder()
    //         .withUrl(`${WEBSOCKET_URL}/lochub`, {
    //           accessTokenFactory: () => this.$store.state.Token.access_token,
    //         })
    //         .withHubProtocol(new msgpack.MessagePackHubProtocol())
    //         .build()
    //       this.connection.on('Loc_Data', (data) => {
    //         // console.log(`connection`, data)
    //         resolve(data)
    //       })
    //     } catch (e) {
    //       reject(e)
    //     }
    //   })
    // }
}
